import { createRequest } from '/@/api/service';
const module = 'ib/map/v1/AreaMapApi/';

/**
 * @function 查看区域地图设备详情(参数deviceId,objectType和tenantNo要求必填)
 * @param data
 * @param header
 * @returns {Promise}
 */
function QUERY_AREA_MAP_DEVICE_DETAIL_BY_DEVICE_ID(
  data: AreaMapApi.QueryAreaMapDeviceDetailByDeviceIdReq,
  header: object = {},
): Promise<AreaMapApi.QueryAreaMapDeviceDetailByDeviceIdResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryAreaMapDeviceDetailByDeviceId`,
    data,
    header,
    'POST',
  );
}

export { QUERY_AREA_MAP_DEVICE_DETAIL_BY_DEVICE_ID };
